    <% if logged_in? %>
    <div class="submenu">
        <% if params[:friend].blank? or params[:friend] == current_friend.login %>
          <%=button 'idea.png', _('Idea'), {:controller => "mind/pages", :action => 'new'} if current_friend.in_domain? :friend %>
          &nbsp;<%= button 'edit.png',_("Edit"), {:controller => "mind/pages", :action => 'edit', :id => @page, :current_page => @pages.current_page} unless @pages.empty?%>
          &nbsp;<%= button 'eraser.png', _("Erase"), {:controller => "mind/pages", :action => 'destroy', :id => @page}, {:method => "post", :confirm => _('qErase')} unless @pages.empty?%>
        <% else %>
           <%=_("ef")%>&nbsp;<strong><%=link_to params[:friend], fp_url(params[:friend])%></strong>
        <% end %>
    </div>
    <% end %>